package com.eshop.tools.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

@TableName("local_storage")
public class LocalStorage implements Serializable
{
    @TableId
    private Long id;
    private String realName;
    private String name;
    private String suffix;
    private String path;
    private String type;
    private String size;
    private String operate;
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;
    
    public LocalStorage(final String realName, final String name, final String suffix, final String path, final String type, final String size, final String operate) {
        this.realName = realName;
        this.name = name;
        this.suffix = suffix;
        this.path = path;
        this.type = type;
        this.size = size;
        this.operate = operate;
    }
    
    public void copy(final LocalStorage source) {
        BeanUtil.copyProperties((Object)source, (Object)this, CopyOptions.create().setIgnoreNullValue(true));
    }
    
    public Long getId() {
        return this.id;
    }
    
    public String getRealName() {
        return this.realName;
    }
    
    public String getName() {
        return this.name;
    }
    
    public String getSuffix() {
        return this.suffix;
    }
    
    public String getPath() {
        return this.path;
    }
    
    public String getType() {
        return this.type;
    }
    
    public String getSize() {
        return this.size;
    }
    
    public String getOperate() {
        return this.operate;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setRealName(final String realName) {
        this.realName = realName;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setSuffix(final String suffix) {
        this.suffix = suffix;
    }
    
    public void setPath(final String path) {
        this.path = path;
    }
    
    public void setType(final String type) {
        this.type = type;
    }
    
    public void setSize(final String size) {
        this.size = size;
    }
    
    public void setOperate(final String operate) {
        this.operate = operate;
    }
    
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
}
